# for i in range(1,10+1,2):#0-9
#     print(i,end="\t")
# #打印100以内能被3整除的数字
# for i in range(1,100+1):
#     if i%3==0:
#         print(i,end="\t")
# #猜数字
# #产生随机数
# import random
#
# num=random.randint(1,20)
# while True:
#     guess= int(input("请输入一个数字"))
#     if guess>num:
#         print("太大了")
#     elif guess<num:
#         print("太小了")
#     elif guess==num:
#         print("猜对了")
#         break#结束循环
# #逢七过
# for i in range(1,100+1):
#      if i%7==0 or str(i).find('7')!=-1:
#  # if i % 7==0 or str(i).count('7')>0:
#     print(i,end="\t")
# #打印菱形
# for i in range(1,11+1,2):
#     print(("*" * i).center(11))
# for i in range(9, 0, -2):
#     print(("*" * i).center(11))

# #打印水仙花数
# for n in range(100,1000):
#      i = n // 100           #取百位
#      j = n //10 %10         #取十位
#      k = n % 10             #取个位
#      if n == (i**3+j**3+k**3):
#         print(n)
# for n in range(100,1000):
#     i=n//100
#     j=n//10 %10
#     k=n%10
#     if n==(i**3+j**3+k**3):
#         print(n)
# #打印100以内的质数
# for i in range(2,100+1):
#     for j in range(2,i):
#         if i%j==0:
#             break
#     else:
#         print(i)
# for i in range(2,100+1):
#     for j in range(2,i):
#         if i%j==0:
#             break
#     else:
#            print(i)
# # #打印斐波那契数列
# num1,num2=0,1
# for i in range(39):
#     print(num2,end="\t")
#     num1,num2=num2,num1+num2

#打印九九乘法表
# for i in range(1,10):
#     for j in range(1,i+1):
#         print("%d*%d=%d"%(j,i,i*j),end="\t")
#     print()
# #打印100以内的完数
# for i in range(1, 101):
#     a = 0
#     for j in range(1, i):
#         if i % j == 0:
#             a += j
#     if a == i:
#         print(i)
# for i in range(1,10):
#     for j in range(1,i+1):
#         print("%d*%d=%d"%(j,i,i*j),end="\t")
#     print()
# num1,num2=0,1
# for i in range(39):
#     print(num2 ,end="\t")
#     num1,num2=num2,num1+num2